package com.ceuer.springboot;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "student")
@Data
public class StudentConfig {
	//StudentConfig属性----一定要和yml文件中跟节点student的子节点完全一致
	private String name;
	private int age;
	private List hobby;
	private Map map;
	
}